Track

abstract class Track(url: String?, type: TrackType?, label: String?, id: String, isDefault: Boolean, roles: List<MediaTrackRole>) : Parcelable

The base class for all tracks.

Constructors

Track
Link copied to clipboard
fun Track(url: String?, type: TrackType?, label: String? = null, id: String = UUID.randomUUID().toString(), isDefault: Boolean = false, roles: List<MediaTrackRole> = emptyList())

Properties

id
Link copied to clipboard
val id: String
The ID of the Track.
isDefault
Link copied to clipboard
val isDefault: Boolean = false
Specifies whether the Track is a default Track.
label
Link copied to clipboard
val label: String? = null
The label of the Track.
roles
Link copied to clipboard
val roles: List<MediaTrackRole>
Specifies all the DASH roles that are associated with the Track.
type
Link copied to clipboard
val type: TrackType?
The TrackType of the Track.
url
Link copied to clipboard
val url: String?
The URL of the Track.

Functions

describeContents
Link copied to clipboard
open override fun describeContents(): Int
writeToParcel
Link copied to clipboard
open override fun writeToParcel(parcel: Parcel, flags: Int)

Inheritors

AudioTrack
Link copied to clipboard
SubtitleTrack
Link copied to clipboard
ThumbnailTrack
Link copied to clipboard